package day03;

public class OperDemo3 {
    public static void main(String[] args) {
        int a =9,b=11,c=16;
        System.out.println(a>b && b<c);//false
        System.out.println(a<=b && b>c);//true && false = false
        System.out.println(a<c && b<c);//true && true = true
        int age = 41;
        System.out.println(age>=18 && age<=50);//true
        System.out.println(a++>b && ++b>10);//false
        System.out.println("a="+a+",b="+b);//a=10,b=11
        System.out.println("-------------------------------");

        int a1 =9,b1=11,c1=16;
        System.out.println(a1>b1 || b1<c1);//false||true=true
        System.out.println(a1<=b1 || b1>c1);//true
        System.out.println(a1++>=b1 || --b1==a1);//false(a1=9,c1=16)||true(a1=10,b=10)=true
        System.out.println("a1="+a1+",b1="+b1);//a1=10,b=10
        System.out.println(!(a1==b1));//false
        System.out.println("-------------------------------");

        int i=12,j=15,k=18;
        System.out.println(i>=j && j++<18);//false j=15
        System.out.println(i<j || k++>i);//true k=18
        System.out.println("j="+j+",k="+k);//j=15,k=18



    }
}
